Given a Linq for XML
XContainer
holding node and link data, replace this model's
NodesSource and
LinksSource collections with collections of new node data and new link data.
Syntax
Parameters
- root
- the
XContainer
holding all of the data - nodename
- the name of each
XElement
holding node data - linkname
- the name of each
XElement
holding link data
Type Parameters
- NodeDataType
- this must be a GraphLinksModelNodeData<NodeKey> with a public zero-argument constructor
- LinkDataType
- this must be a GraphLinksModelLinkData<NodeKey,PortKey> with a public zero-argument constructor
See Also